package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.Dictionary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * <p>
 * 字典项 Mapper 接口
 * </p>
 *
 * @author zhangfei
 * @since 2022-02-23
 */
@Mapper
@Repository
public interface DictionaryMapper extends BaseMapper<Dictionary> {

    List<Map<String, String>> selectKeyValue(@Param("type") String type,
                                             @Param("types") List<String> types
    ,@Param("spId")String spId);
    List<Map<String, Object>> test(@Param("type") String type,
                                   @Param("types") List<String> types);

    Integer selectConfigurable(@Param("spId")String spId);

    List<String> selectConfigureBySpId(@Param("spId")String spId);

    Map<String,Object> selectByConfigureId( @Param("id")String id);

    String selectCompanyNames(@Param("scopes") List<String> scope);

    int selectScope(@Param("spId") String spId, @Param("dictCode") String dictCode);

    List<String> selectSyncAlarmCodes();
}
